package br.com.californiahotel.client.architecture.viewController;

import com.smartgwt.client.widgets.Canvas;

public abstract class BasicController {
	
	private final DisplayController display;

	protected interface DisplayController {
		Canvas getView();
	}
	
	public BasicController(DisplayController display) {
		this.display = display;
		bind();
	}
	
	protected abstract void bind();
	
	public Canvas getView(){
		return display.getView();
	}
	
	protected DisplayController getDisplayController(){
		return display;
	}
	
}
